<?php


namespace app\api\controller;


class Ppb extends  Index
{
    /*
     *
     * 品牌中心管理下面的品牌表
     */

    public function index(){
        //查找路径
        $model= new\app\admin\model\Ppb;
        //查询语句
        $str=$model
            ->join('tplay_nav','tplay_ppb.nav_id=tplay_nav.id')
            ->field('tplay_ppb.id,tplay_ppb.title,tplay_ppb.thumb,tplay_nav.navname')
            ->where(1)
            ->limit(0,10)
            ->select();
        return json([200,'成功',$str]);
    }
}